From: Olaf Hering Date: Tue, 3 Apr 2012 14:12:21 +0000 (+0100) Subject: tools/vtpm: use LDLIBS to pass -lgmp X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=526112fcc42d3a4bdc09825d42dc8fccb17e648d;p=xen.git tools/vtpm: use LDLIBS to pass -lgmp Linking tpmd will fail with recent toolchains because -lgmp is passed via LDFLAGS instead of LDLIBS. With this change -lgpm is placed at the end of the gcc cmdline and linking tpmd succeeds again. Signed-off-by: Olaf Hering Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/vtpm/vtpm-0.5.1.patch b/tools/vtpm/vtpm-0.5.1.patch index 2aeb745e95..127160c0c5 100644 --- a/tools/vtpm/vtpm-0.5.1.patch +++ b/tools/vtpm/vtpm-0.5.1.patch @@ -74,7 +74,7 @@ diff -Naurp tpm_emulator-0.5.1/tpmd/Makefile tpm5-test/tpmd/Makefile #WFLAGS += -Wextra -Wcast-qual -Wmissing-prototypes -Wmissing-declarations -Wstrict-aliasing CFLAGS += $(WFLAGS) -g -I.. -I. -O2 -fno-strict-aliasing +CFLAGS += -I../../../../tools/vtpm_manager/manager - LDFLAGS += -lgmp + LDLIBS += -lgmp -BINDIR := /usr/sbin/ +BINDIR := /usr/bin/